<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta name="robots" content="noindex,nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="img/alerts.css" rel="stylesheet" media="screen">
<link rel="stylesheet" type="text/css" href="layui/css/layui.css" />
<link rel="stylesheet" type="text/css" href="css/x.css"/>
<title>课程分类</title>
<script type="text/javascript" language="javascript">var tentpath='/';</script>
<script src="js/common.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
<script language="javascript" src="js/jquery.min.js"></script>
<script src="layui/layui.js" type="text/javascript"></script>

<script language="javascript">
 $(document).ready(function(){	

$("#btn_editall").click(function(){
				if(confirm('您确定要修改选中的课程分类吗?'))
				{
					document.formclass.action='?action=edit';
					document.formclass.submit();
				}
	 })
	
$("#btn_delall").click(function(){
				if(confirm('您确定要删除选中的课程分类吗?'))
				{
					document.formclass.action='?action=delall';
					document.formclass.submit();
				}
	 })

	
})

function del(id){
	if(confirm('您确定要删除选中的课程分类吗?'))
			{
			window.location='?action=del&id='+id;
			}
		
		}	
</script>
</head><body>
<!--当前导航-->


<div class="layui-fluid">
  <div class="r_content pd15">
    <div style="overflow-x: auto">   
        <table class="layui-table" style="min-width:1170px;">
		  <form method="post" name="formclass" action=""> 
			 <tr>
			  <td colspan="5">课程分类管理</td>
			 </tr>
			  <tr align="center">
				<td width="15%">ID.名称(数量)</td>
				<td width="30%">中文名称</td>
				<td width="30%">所属分类</td>
				<td width="25%" >操作</td>
			  </tr>
					  
				<?php typeList(0,"&nbsp;&nbsp;&nbsp;&nbsp;");?>
		  
			<tr>
				<td colspan="6"><label>全选&nbsp;&nbsp;<input type="checkbox" name="ChkAll" id="ChkAll" ids="S_ID"  class="checkbox" onclick="checkAll(this.checked,'input','e_id[]')"/></label>
						  &nbsp;&nbsp;&nbsp;&nbsp; <input type="button" name="editall" value="修改所选分类" class="rb1"  id="btn_editall"/>
				      &nbsp;&nbsp;<input type="button" name="delall"  value="删除所选分类" class="rb1"  id="btn_delall"/></td>
					  </tr>
                  </form>
			    </table>   
				
	
		
			  <form id="form1" name="form1" method="post" action="?action=add">
				 <table class="layui-table" style="min-width:1170px;">
                    <tr style="background-color: #e2e9f6;" >
                      <td colspan="10">课程分类添加(<font color='red'>＊</font>为必填)</td>
                     </tr>
					<tr>
					<td>
					选择层级：
					<select name="upid" id="v_type">
						<option value="0">顶级分类</option>
						<?php makeTypeOptionSelected(0,"&nbsp;|&nbsp;&nbsp;","",0,0);?>
					</select><font color='red'>＊</font> 
					&nbsp;&nbsp;&nbsp;&nbsp;中文名：<input size="13" type="text" name="tname"><font color='red'>＊</font> &nbsp;&nbsp;
					<input class="layui-btn layui-btn-sm layui-btn-normal" type="submit" value="添　　加" name="Submit" /></td>
					</tr>
				</table>  
				</form>
			  </div>
			</div>
		</div>

</body>
</html>
